/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bayu.services.dao;

import com.bayu.services.entity.Notereport;
import java.util.List;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author Bayu
 */
@Repository("notereportDao")
@Transactional
public class NotereportDao extends AbstractDao {

    @Override
    public List<Notereport> getAll(String query) {
        return hibernateTemplate.find(query);
    }

    @Override
    public List<?> getAllByDate(String start, String end) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<Notereport> getById(Long id) {
        return hibernateTemplate.find("from Notereport where id=" + id);
    }

    @Override
    public List<?> getAllByMonth(String month) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public double getMax() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public double getMin() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
